package main

import (
	"fmt"
	"crypto/md5"
)

func main() {
	data:=[]byte{'a','b','c','d'}
	hashed:=md5.Sum(data)
	fmt.Printf("%x\n", hashed)

	hasher:=md5.New()
	hasher.Write(data)
	hashed2:=hasher.Sum(nil)
	fmt.Printf("%x\n", hashed2)
}
